/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Modelo;

import java.util.ArrayList;

/**
 *
 * @author ivyduk
 */
public class Sistema {

    
    private ArrayList<Hardwood> hardwoodArray = new ArrayList<Hardwood>();
    
    public Sistema() {
    Hardwood Cherry=new Hardwood();
    Hardwood Curly=new Hardwood();
    Hardwood Genuine=new Hardwood();
    Hardwood Wenge=new Hardwood();
    Hardwood WhiteOak=new Hardwood();
    
    Cherry.setPrice(5.95);
    Cherry.setType("Cherry");
    Cherry.setDeliverytime(0.5);
    hardwoodArray.add(Cherry);
    
    Curly.setPrice(6.00);
    Curly.setType("Curly Maple");
    Curly.setDeliverytime(1.5);
    hardwoodArray.add(Curly);
    
    Genuine.setPrice(9.60);
    Genuine.setType("Genuine Mahogany");
    Genuine.setDeliverytime(3.0);
    hardwoodArray.add(Genuine);
    
    Wenge.setPrice(22.35);
    Wenge.setType("Wenge");
    Wenge.setDeliverytime(5.0);
    hardwoodArray.add(Wenge);
    
    WhiteOak.setPrice(6.70);
    WhiteOak.setType("White Oak");
    WhiteOak.setDeliverytime(1.5);
    hardwoodArray.add(WhiteOak);
    
    
    }
//el siguiente método devuelve el objeto de la lista a partir del índice que recibe    
    public Hardwood RetornarMadera(int index){
        Hardwood h;
           h= hardwoodArray.get(index);
           return h;
         
    }
    
    
    
}
